home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 44
/
044.d81
/
default setup
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
4KB
|
147 lines
5 open3,8,3,"features":get#3,a$,a$,ns$:ns=val(ns$):close3
10 :
15 j=56320:poke53280,14:poke53281,1:print"[147][144]"
20 gosub 210
24 :
25 print"[147]"
26 print"[144] [176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]"
30 forx=1to21:print" [221] [221]"
35 next
40 print"[144] [173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189]"
45 print" [159][196]efault [211]etup"
50 print" [156][163][163][163][163][163][163][163][163][163][163][163][163][163]"
55 print"[150] [217]our selections here are optional"
60 print"[150] [217]ou may change this to your taste."
65 :
70 mu$(1)=" [207][206] [146] ":mu$(0)="[150] [207][198][198] [146]"
75 sd$(1)="[195] [129][207][158] [204] [207] [210] "
80 sd$(0)="[144][194][204][193][195][203][146] [152]& [144][215][200][201][212][197]"
85 :
90 a$(1)=" [212]oggle [205][213][211][201][195] "
95 a$(2)=" [212]oggle [211][195][210][197][197][206] [196][201][211][208][204][193][217] "
100 a$(3)=" [211][193][214][197] [196]efaults "
105 a$(4)=" [209][213][201][212] "
130 s$=" "
140 goto 1000
145 gosub 260 : rem are these ok
150 ifnot(ok)then25
155 :
160 gosub 475: rem current side
165 sb=si : rem side booted
175 cs=1
180 gosub305 : rem write data to file
185 cs=cs+1 : rem on side cs
190 ifcs<=nsthen180
195 :
200 goto410 : rem put side sb in
205 :
210 rem get current setup
215 open15,8,15,"i0"
220 open3,8,4,"setup"
225 input#3,d$(1),d$(2),d$(3),d$(4),d$(5),d$(6),d$(7)
230 mu=val(d$(6))
235 sd=val(d$(7))
240 close3:close15
245 return
250 :
255 :
260 rem these ok
265 :
270 print"[147][155] [205]usic : "mu$(1+mu):print" [155][211]creen [196]isplay : "sd$(1+sd)
275 print" [193]re these settings what you want ([217]/[206])?"
280 poke198,0:wait198,1:geta$
285 ifa$<>"y"anda$<>"n"then280
290 ifa$="y"thenok=-1
295 ifa$="n"thenok=0
300 return
305 rem write data to disk
310 print"[147]":poke53281,6:poke53280,6
315 print" [208]lease place [211][201][196][197] #"cs"of [158][204][207][193][196][211][212][193][210] in"
320 print" the drive and press [210][197][212][213][210][206]."
325 poke198,0:wait198,1:geta$:ifa$<>chr$(13) then325
330 gosub475: rem what side is it?
335 ifsi=csthen355
340 print"[153] *** [211]ide #"cs"not found! [153]*** "
345 fordl=1to2000:next:goto305
350 :
355 rem ok, write data
360 open15,8,15,"i0"
365 d$(7)="0":ifsd=-1thend$(7)="-1"
370 d$(6)="0":ifmu=-1thend$(6)="-1"
375 open3,8,4,"setup":cr$=chr$(13)
380 print#15,"p"chr$(0)"";
385 print#3,d$(1)cr$d$(2)cr$d$(3)cr$d$(4)cr$d$(5)cr$d$(6)cr$d$(7)cr$
390 close3:close15
395 return
400 :
405 end
410 rem put side one back in
415 print"[147]":poke53281,6:poke53280,6
420 print" [208]lease place side"ns"of [158][204][207][193][196][211][212][193][210] in"
425 print" your drive and press [[211][208][193][195][197]] to return"
430 print" to the [204][207][193][196][211][212][193][210] menu.":poke198,.
435 geta$:ifa$<>" "then435
440 gosub475: rem what side is it?
445 ifsi=1then465
450 print"[153] *** [211]ide # 1 not found! [153]*** "
455 fordl=1to2000:next:goto410
460 :
465 goto555 : rem connect back
470 :
475 rem read current side
480 open15,8,15,"i0":close15
485 open2,8,2,"$"
490 fori=0to156:get#2,a$:next
495 get#2,a$:si=val(a$):close2
500 return
505 print""
506 print" [146]"
507 print" [196]o you wish to quit? [151] [146]"
508 print" [151] [146]"
509 print" [217])es [207][210] [206])o [151] [146]"
510 print" [151] [146]"
512 print"[151] [146]"
515 a=peek(203):ifa<>25anda<>39then515
520 ifa=39 then 26
525 goto555
530 rem same background and text
535 poke53281,1:print"[147][144] [215]hy did you pick the same color for"
540 print" the [194][193][195][203][199][210][207][213][206][196] and the [212][197][216][212]???"
545 print" [212]ry picking again..."
550 fordl=1to3200:next:return
555 rem return to customize menu
560 rem -- boot that there program --
561 poke53281,6:poke53280,6
562 print"[147] [208]lease [215]ait [215]hile [204]oading..."
563 poke646,peek(53281)
565 print"[147]load"chr$(34)"custom ls boot"chr$(34)",8":print"run"
570 poke631,13:poke632,13:poke198,2:end
1000 :
1005 print"";
1015 poke53280,14:poke53281,1
1035 p$="[144]"
1036 sg$=" [155][211]creen [196]isplay :"
1037 mg$=" [155][205]usic [211]tatus :"
1040 printsg$sd$(1+sd):printmg$mu$(1+mu):printp$;:forx=1to4
1045 printa$(x)chr$(13)s$
1050 next:x=1:gosub1055:goto1070
1055 pt$="[154]"+a$(x)+"[146][155][187]"
1060 pt$=pt$+chr$(13)+"[155][188][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][146][190]"
1065 return
1070 printp$pt$
1075 geta$:ifa$=""then1075
1080 if(a$=""ora$="[157]")and(x<4)thena=1:goto 1100
1085 if(a$="[145]"ora$="")and(x>1)thena=-1:goto 1100
1090 ifa$=chr$(13) then 1130
1095 goto 1075
1100 printp$"[144]"a$(x)" "chr$(13)s$
1105 ifa=1 then p$=p$+""
1110 ifa<1 then p$=left$(p$,len(p$)-2)
1115 x=x+a:gosub 1055
1120 goto 1070
1130 ifx=1thenmu=not(mu):printmg$;mu$(1+mu)
1140 ifx=2thensd=not(sd):printsg$;sd$(1+sd)
1145 ifx=3 then 145
1150 ifx=4 then 505
1160 goto 1075